package cn.flyboy.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import cn.flyboy.entity.Answer;
import cn.flyboy.entity.Student;
import org.springframework.web.multipart.MultipartFile;

public interface StudentService {

    // 登录
    public Student login(Student student);

    public Student selByStudentIP(String stu_id, String stu_ip);

    public Student selStudentByIdExam(String stuId, String stuExam);

    // 查询某考试下的所有的学生信息
    public List<Student> selAllStudents(String e_name, String e_teacher);

    public int insStudent(Student student);

    public List<Student> selStudentById(String stu_id, String e_name);

    public int saveExcel(MultipartFile file, String e_name, HttpServletRequest req, HttpSession session);

    public int editStudent(Student student);

    public int updUnBind(String stu_id);

    public int updStuIp(Student stu);

    public List<Answer> selAllAnswerInfo(String stu_id, String exam_name);
}
